package chain.bimpl;


import java.util.Arrays;
import java.util.List;

public class Boss extends AbstractHandler {
    @Override
    public List<String> doChain(int money) {
        if(money>1000){
            return Arrays.asList("王五","王五女儿");
        }

        if(nextHandler!=null){
            return nextHandler.doChain(money);
        }

        return null;
    }
}
